<?php

class MyValue extends Object {
	//string
	private $mValue = "";
	
	//string
	private $mFieldName = "";
	
	//string
	private $mType = "text"; //text, int, real, datetime,  select, multiselect, popup, checkbox, radio, calculation ...
	
	//int
	private $mLength = 255;
	
	//string
	private $mBeginSec = "'";
	
	//string
	private $mEndSec = "'";
	
	//string
	private $mLabel = "Unknow";
	
	
	//boolean
	private $isKey = false;
	
	/**
	* Constructor.
	*/
	function __construct() {
	
	}
	
	
	function setValue($tVa) {
		$this->mValue = $tVa;
	}
	
	function getValue() {
		return $this->mValue;
	}
	
	function setFieldName($tFi) {
		$this->mFieldName = $tFi;
	}
	
	function getFieldName() {
		return $this->mFieldName;
	}
	
	function setType($tTy){
		$this->mType = $tTy;
	}
	
	function getType(){
		return $this->mType;
	}
	
	function setLength($tLe){
		$this->mLength = $tLe;
	}
	
	function getLength(){
		return $this->mLength;
	}
	
	function setBeginSec($tBeg){
		$this->mBeginSec = $tBeg;
	}
	
	function getBeginSec(){
		return $this->mBeginSec;
	}
	
	function setEndSec($tEn){
		$this->mEndSec = $tEn;
	}
	
	function getEndSec(){
		return $this->mEndSec;
	}
	
	function getDataInSQL(){
		return ($this->mBeginSec . $this->mValue . $this->mEndSec);
	}

	
	function setLabel($tLabel){
		$this->mLabel = $tLabel;
	}
	
	function getLabel(){
		return $this->mLabel;
	}
	
	function setIsKey($bo = false) {
		$isKey = $bo;
	}
	
	function isKey() {
		return $this->isKey;
	}
}